package com.yanfan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author songchi
 * @since 2024-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "IbmsRequestLogs对象", description = "")
public class IbmsRequestLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id" , type = IdType.AUTO) // 整型类型使用自增
    private Long id;

    @ApiModelProperty(value = "url")
    private String url;

    @ApiModelProperty(value = "接口访问状态SUCCESS、FAILURE")
    private String status;

    @ApiModelProperty(value = "请求总数")
    private Long  requestSum;

    @ApiModelProperty(value = "请求成功数")
    private Long requestSuccess;

    @ApiModelProperty(value = "请求失败数")
    private Long requestFail;

    @ApiModelProperty(value = "请求成功占比")
    private Double successZero;

    @ApiModelProperty(value = "请求失败占比")
    private Double failZero;


    @ApiModelProperty(value = "接口请求时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
